package com.ruoyi.rsbi.component;

import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class RSBIServletComponent {
    @Bean
    public ServletListenerRegistrationBean<ExtContextLoaderListener> servletListenerRegistrationBean() {
        ServletListenerRegistrationBean<ExtContextLoaderListener> servletListenerRegistrationBean = new ServletListenerRegistrationBean<>();
        servletListenerRegistrationBean.setListener(new ExtContextLoaderListener());
        return servletListenerRegistrationBean;
    }
}
